
// 业务合作
export const businessColumns = [
  {label:'图片', prop:'banner',type:'image'},
  {label:'所属公司', prop:'name', width: '160px'},
  {label:'业务标题-中文', prop:'title_cn', width: '160px'},
  {label:'业务标题-英文', prop:'title_en', width: '160px'},
  {label:'业务介绍', prop:'desc', width: '200px'},
  {label:'创建人', prop:'createUser'},
  {label:'创建时间', prop:'createTime', width: '200px'},
  {label:'更新人', prop:'updateUser'},
  {label:'更新时间', prop:'updateTime', width: '200px'},
  {label:'状态', prop:'status'},
  { label: '操作', type:'operation', width: '160px', children: [
    { label: '查看', type: 'primary',},
    { label: '编辑', type: 'info',  },
    { label: '删除', type: 'danger',  },
  ]},
]
export const business:any = (options:any[] , options2: any[], options3:any[]) => { 
  return [
    { "aria-label": '业务标题', prop: 'title_cn', type: 'input', placeholder:'请输入业务标题' },
    { label: '公司名称', width:'200px', prop: 'name', filterable:true, type: 'select', placeholder:'请选择公司名称', options: options,  },
    { "aria-label": '创建时间', prop: 'time', type: 'datepicker', "start-placeholder":"开始日期", "end-placeholder":"结束日期"},
    { type: 'buttons', children: [
      { label: '搜索', type: 'primary',},
      { label: '重置', type: 'info',  },
      { label: '添加', type: 'success',  },
    ]
  }
]
}
//  新闻管理
export const newsColumns = [
  // {label:'图片', prop:'banner',type:'image'},
  {label:'新闻标题', prop:'title_cn', width: '160px'},
  {label:'浏览量', prop:'pageViews', width: '160px'},
  {label:'新闻内容', prop:'desc', width: '200px'},
  {label:'创建人', prop:'createUser'},
  {label:'创建时间', prop:'createTime', width: '200px'},
  {label:'更新人', prop:'updateUser'},
  {label:'更新时间', prop:'updateTime', width: '200px'},
  {label:'状态', prop:'status'},
  { label: '操作', type:'operation', width: '160px', children: [
    { label: '查看', type: 'primary',},
    { label: '编辑', type: 'info',  },
    { label: '删除', type: 'danger',  },
  ]},
]

export const news:any = (options:any[] , options2: any[], options3:any[]) => { 
  return [
    { "aria-label": '新闻标题', prop: 'title_cn', type: 'input', placeholder:'请输入新闻标题' },
    // { "aria-label": '创建时间', prop: 'time', type: 'datepicker', "start-placeholder":"开始日期", "end-placeholder":"结束日期"},
    { type: 'buttons', children: [
      { label: '搜索', type: 'primary',},
      { label: '重置', type: 'info',  },
      { label: '添加', type: 'success',  },
    ]
  }
]
}
// 合作伙伴
export const cooperationColumns = [
  {label:'图片', prop:'banner',type:'image'},
  {label:'企业名称', prop:'title_cn', width: '160px'},
  {label:'创建人', prop:'createUser'},
  {label:'创建时间', prop:'createTime', width: '200px'},
  {label:'更新人', prop:'updateUser'},
  {label:'更新时间', prop:'updateTime', width: '200px'},
  {label:'状态', prop:'status'},
  { label: '操作', type:'operation', width: '160px', children: [
    { label: '查看', type: 'primary',},
    { label: '编辑', type: 'info',  },
    { label: '删除', type: 'danger',  },
  ]},
]

export const cooperation:any = (options:any[] , options2: any[], options3:any[]) => { 
  return [
    { label: '企业名称', width:'200px', prop: 'title_cn', filterable:true, type: 'select', placeholder:'请选择企业名称', options: options,  },
    { type: 'buttons', children: [
      { label: '搜索', type: 'primary',},
      { label: '重置', type: 'info',  },
      { label: '添加', type: 'success',  },
    ]
  }
]
}

// 留言管理
export const contactColumns = [
  {label:'姓名', prop:'title_cn', width: '160px'},
  {label:'电话', prop:'phone', width: '160px'},
  {label:'邮箱', prop:'mail', width: '160px'},
  {label:'留言', prop:'remark', width: '300px'},
  {label:'创建时间', prop:'createTime', width: '200px'},

  // {label:'状态', prop:'status'},
  { label: '操作', type:'operation', width: '160px', children: [
    // { label: '查看', type: 'primary',},
    // { label: '编辑', type: 'info',  },
    { label: '删除', type: 'danger',  },
  ]},
]

export const contact:any = (options:any[] , options2: any[], options3:any[]) => { 
  return [
    { "aria-label": '姓名', prop: 'title_cn', type: 'input', placeholder:'请输入姓名' },
    // { "aria-label": '创建时间', prop: 'time', type: 'datepicker', "start-placeholder":"开始日期", "end-placeholder":"结束日期"},
    { type: 'buttons', children: [
      { label: '搜索', type: 'primary',},
      { label: '重置', type: 'info',  },
      // { label: '添加', type: 'success',  },
    ]
  }
]
}

// 留言管理
export const aboutColumns = [
  {label:'名称', prop:'name', width: '160px'},
  {label:'服务热线', prop:'tel', width: '160px'},
  {label:'电话', prop:'phone', width: '160px'},
  {label:'邮箱', prop:'mail', width: '160px'},
  {label:'地址', prop:'address', width: '160px'},
  {label:'QQ', prop:'qq', width: '160px'},
  {label:'创建时间', prop:'createTime', width: '200px'},
  {label:'状态', prop:'status'},
  { label: '操作', type:'operation', width: '160px', children: [
    { label: '查看', type: 'primary',},
    { label: '编辑', type: 'info',  },
    { label: '删除', type: 'danger',  },
  ]},
]

export const about:any = (options:any[] , options2: any[], options3:any[]) => { 
  return [
    { "aria-label": '名称', prop: 'title_cn', type: 'input', placeholder:'请输入名称' },
    // { "aria-label": '创建时间', prop: 'time', type: 'datepicker', "start-placeholder":"开始日期", "end-placeholder":"结束日期"},
    { type: 'buttons', children: [
      { label: '搜索', type: 'primary',},
      { label: '重置', type: 'info',  },
      { label: '添加', type: 'success',  },
    ]
  }
]
}

